<?php
$data->creator->defaultImage = array(
    Option::GENDER_MALE => $this->imagesPath . '/male.gif',
    Option::GENDER_FEMALE => $this->imagesPath . '/female.gif',
);
$this->layout = '1column';
$this->pageTitle = $data->metaTitle;
$this->breadcrumbs[] = $data->title;
$this->metaTags = array(
    'description' => $data->metaDescription,
    'keywords' => $data->metaKeywords,
);
$this->widget('ext.widgets.EOpenGraph.OpenGraphWidget', array('items' => array(
    'url' => $data->url,
    'title' => $this->pageTitle,
    'description' => $this->metaTags['description'], //$user->description,
    //'image' => $user->thumbnail,
)));
?>
<?php $this->widget('EditorPanelWidget', array('model' => $data, 'htmlOptions' => array('class' => 'editor-panel'))); ?>

<h1><?php echo $data->title; ?></h1>



<?php foreach ($data->gallery as $image): ?>
    <img src="<?php echo $image->originalFile; ?>" title="<?php echo $data->title; ?>" alt="<?php echo $data->title ?>" />
<?php endforeach; ?>


<br/><br/>
<?php $this->widget('ext.widgets.EShortlist.ShortListButtonWidget', array('model' => $data, 'count' => $data->totalShortlist)); ?> | 
<?php $this->widget('ext.widgets.ELike.LikeButtonWidget', array('model' => $data, 'count' => $data->totalLike)); ?> | 
<?php $this->widget('ext.widgets.EAbuse.AbuseButtonWidget', array('model' => $data)); ?> 

viewed: <?php echo $data->totalView; ?> 
reported: <?php echo $data->totalAbuse; ?><br /><br />

Tags: <?php echo $data->tagsLinks; ?><br /><br />

<p>
    Posted by:<br/>
    Company <img src="<?php echo $data->accountSquareLogo; ?>" width="50" height="50" align="left" />
    <?php echo $data->accountName; ?>
    <br/><br/><br/>

    <img src="<?php echo $data->creatorSquareAvatar; ?>" width="75" height="75" />
    <?php echo $data->creatorName; ?><br/><br/><br/>
</p>

Status: <?php echo $data->status; ?><br />
Category: <?php //echo $data->category->title; ?><br />

<p>
<h3>Description: </h3>
<?php echo $data->description; ?>
</p>

<p>
    <?php $this->widget('ext.widgets.EComment.CommentWidget', array('model' => $data)); ?>
</p>